import request from '@/utils/request'


export function getAnnouncementsApi (params) {
	return request({
		url: '/announcement',
		method: 'get',
		params: params
	})
}


export function deleteAnnouncementApi (id) {
	return request({
		url: '/announcement/'+ id,
		method: 'delete'
	})
}


export function addAnnouncementApi (params) {
	return request({
		url: '/announcement',
		method: 'post',
		data: params
	})
}
